<template>
  <div class="container">
    <Category title="美食">
      <img src="./assets/02.jpg" />
    </Category>
    <Category title="游戏">
      <ul>
        <li v-for="(game, index) in games" :key="index">{{ game }}</li>
      </ul>
    </Category>
    <Category title="电影"
      ><video
        controls
        src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
      ></video
    ></Category>
  </div>
</template>

<script>
import Category from "./components/Category.vue";
export default {
  name: "App",
  components: { Category },
  data() {
    return {
      foods: ["火锅", "小龙虾", "牛排"],
      games: ["王者荣耀", "植物大战僵尸", "开心消消乐"],
      files: ["过年", "熊心归来", "伴我熊心"],
    };
  },
};
</script>
<style>
.container {
  display: flex;
  justify-content: space-around;
}
img {
  width: 100%;
}
video {
  width: 100%;
}
</style>




